//
//  HomeApiViewController.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/2.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit

// MARK: - 主要做用户验证用
class HomeApiViewController: BaseViewController {
    
    var u : String?
    var retcode : String?
    var user : User?
    

    override func viewDidLoad() {
        super.viewDidLoad()

    }
    
    override func loadView() {
           super.loadView()
       
    }
    
}

extension HomeApiViewController {

    /*
    
    // 用户验证
    func _network(str : [String], group: DispatchGroup)->Bool {

         
        return self.isLogin
    }*/
    
    
    
    // 获取retcode
    func _retcode(res : [String : AnyObject]) -> String {
        var result : [String : AnyObject] = [:]
        if let _rep = res["REP"] as? [String : AnyObject] {
            result = (_rep["RESULT"] as? [String : AnyObject])!
        }
        return result["RETCODE"] as! String
    }
    
}
